package com.woniu.outlet.client;

import com.woniu.config.FeignLogConfiguration;
import com.woniu.inlet.vo.WorkingProcedureVo;
import com.woniu.outlet.po.WorkerVo;
import com.woniu.util.ResponseResult;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Mapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "erp-system-management",qualifier = "workingProcedures")
public interface WorkingProcedures {

//    @GetMapping("workingProcedure/workingProcedures/workingProcedureCode")
//    ResponseEntity<String> getWorkingProcedureByCode(@RequestParam("code") String code);

    @GetMapping("worker/workers/getById")
    ResponseResult<WorkerVo> getWorkerById(@RequestParam("id") Long id) throws Exception;

    @GetMapping("worker/workers/getByCode")
    ResponseResult<Long> getWorkerByCode(@RequestParam("code") String code);

    @GetMapping("workingProcedure/workingProcedures/getSuperByCode")
    ResponseResult<String> getSuperByCode(@RequestParam("code") String code);

    @GetMapping("worker/workers/getByAccount")
    ResponseResult<String> getWorkerByAccount (@RequestParam("account") String account);

    @PostMapping("systemLog/add")
    ResponseResult<String> addSystemLog(@RequestParam("systemClassificationName") String systemClassificationName);

}
